<?php

define("TABLE_SHOPGATE_ORDERS", "orders_shopgate_order");


$scriptPath = dirname($_SERVER["SCRIPT_FILENAME"]);
if( preg_match("/shopgate$/", $scriptPath) ) {
	$includePath = realpath( SHOPGATE_BASE_DIR.'/../' );
	if(!empty($config["include_path"]))
		$includePath = $config["include_path"];
	
	chdir($includePath);
	
	include_once 'includes/application_top.php';
}

